package com.foreknow.service.impl;

import com.foreknow.entity.ConstantItem;
import com.foreknow.entity.Department;
import com.foreknow.mapper.ConstantItemMapper;
import com.foreknow.mapper.DepartmentMapper;
import com.foreknow.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl implements DepartmentService {

    @Autowired
    private DepartmentMapper departmentMapper;

    /**
     * 获取科室分类名称
     * @return
     */
    @Override
    public List<Department> getDeptCategory() {
        return departmentMapper.getDeptCategory();
    }

    /**
     * 获取科室名称
     * @param deptCategoryId
     * @return
     */
    @Override
    public List<Department> deptListByType(Integer deptCategoryId) {
        return departmentMapper.deptListByType(deptCategoryId);
    }
}
